import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-form',
  templateUrl: './form.component.html',
  styleUrls: ['./form.component.scss']
})
export class FormComponent implements OnInit {

  public peopleInfo:any={
    username:'默认初始值',
    sex:'1',
    cityList:[
      '成都',
      '重庆',
      '上海',
      '长沙'
    ],
    city:'成都',

    hobby:[{
      title:'编码',
      checked:false

    },{
      title:'看番',
      checked:false

    },{
      title:'玩游戏',
      checked:false

    },{
      title:'唱歌',
      checked:true

    }],
    
    mark:''

  }


  constructor() { }

  ngOnInit(): void {
  }

  doSubmit(){
    let nameDom:any=document.getElementById('username');
    alert(nameDom.value);
  }

}
